<?PHP
require_once 'XML/Parser.php';

class Prop_Parser extends XML_Parser
{

  var $property = array();
  var $currentTag  = null;

  var $folding = false;

  function startHandler($parser, $name, $attribs)
  {

        $this->currentTag = $name;

  }

  function endHandler($parser, $name)
  {
    $this->currentTag = null;
  }

  function cdataHandler($parser, $data)
  {
    $this->property[$this->currentTag] = $data;
  }

  function getProperties()
  {
    return $this->property;
  }
}
?>